<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>动画1</title>
    <style>
        .ShouFengQin {
            width: 250px;
            height: 360px;
        }

        .Tou {
            height: 35px;
            width: 250px;
            font-size: 30px;
            font-weight: bold;
        }

        .tit {
            height: 15px;
            width: 250px;
            margin-top: 20px;
        }

        .tit>div {
            height: 15px;
            width: 25%;
            float: left;
        }

        .tit>.Xv {
            width: 10%;
        }

        .tit>.titl {
            width: 40%;
        }

        .tit>.jiang {
            color: red;
        }

        .tit>.price {
            color: rgb(158, 155, 155);
        }

        .nei {
            height: 100px;
            width: 100%;
            margin-top: 10px;
        }

        .XvH {
            width: 5%;
            height: 100px;
            line-height: 100px;
            text-align: center;
            float: left;
        }

        .neiR {
            width: 94%;
            height: 98px;
            border: 1px solid #eaeaea;
            float: left;
        }

        .neiR>img {
            height: 70px;
            margin-left: 20px;
            margin-top: 10px;
            float: left;
        }

        .titt {
            margin-left: 70px;
            color: blue;
            margin-top: 10px;
        }

        .pri {
            margin-left: 70px;
            color: red;
            margin-top: 5px;
        }

        .AnN {
            width: 40px;
            height: 20px;
            float: left;
            margin-top: 5px;
            margin-left: 5px;
            line-height: 20px;
            text-align: center;
            border: 1px solid #dddddd;
            background: #f8f8f8;
        }
        .non{
            display: none;
        }
        .now{
            display: block;
        }
        .tab{
            width: 350px;
            height: 60px;
            margin-top: 110px;
        }
        .mod{
            width: 45px;
            color: blue;
            float: left;
            text-align: center;
        }
        .xuan{
            background: blue;
            color: white;
        }
        .NNei{
            width: 100%;
            display: none;
        }
        .NNei1{
            width: 100%;
            display: block;
        }
        input{
            width: 60%;
            height: 27px;
            border: 1px solid blue;
        }
        .but{
            width: 35%;
            height: 32px;
            color: white;
            background: blue;
            border: none;
            margin-left: -3%;
        }
        
    </style>
</head>

<body>
    <div class="ShouFengQin">
        <div class="Tou">手机降价排行</div>
        <div class="tit">
            <div class="Xv">1</div>
            <div class="titl">天语 V5(大黄</div>
            <div class="price">1099元</div>
            <div class="jiang">降600</div>
        </div>
        <div class="nei non">
            <div class="XvH">1</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">2</div>
            <div class="titl">飞利浦 W737</div>
            <div class="price">800元</div>
            <div class="jiang">降550</div>
        </div>
        <div class="nei non">
            <div class="XvH">2</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">3</div>
            <div class="titl">三星 W999</div>
            <div class="price">5660元</div>
            <div class="jiang">降540</div>
        </div>
        <div class="nei non">
            <div class="XvH">3</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">4</div>
            <div class="titl">摩托罗拉</div>
            <div class="price">2130元</div>
            <div class="jiang">降520</div>
        </div>
        <div class="nei non">
            <div class="XvH">4</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">5</div>
            <div class="titl">飞利浦 W832</div>
            <div class="price">899元</div>
            <div class="jiang">降500</div>
        </div>
        <div class="nei non">
            <div class="XvH">5</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">6</div>
            <div class="titl">HTC One</div>
            <div class="price">4500元</div>
            <div class="jiang">降490</div>
        </div>
        <div class="nei non">
            <div class="XvH">6</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">7</div>
            <div class="titl">天语 W95(联</div>
            <div class="price">500元</div>
            <div class="jiang">降499</div>
        </div>
        <div class="nei non">
            <div class="XvH">7</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">8</div>
            <div class="titl">天语 E88</div>
            <div class="price">800元</div>
            <div class="jiang">降490</div>
        </div>
        <div class="nei non">
            <div class="XvH">8</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">9</div>
            <div class="titl">黑莓 Z30</div>
            <div class="price">3450元</div>
            <div class="jiang">降450</div>
        </div>
        <div class="nei non">
            <div class="XvH">9</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
        <div class="tit">
            <div class="Xv">10</div>
            <div class="titl">小米 2S(联通</div>
            <div class="price">1099元</div>
            <div class="jiang">降600</div>
        </div>
        <div class="nei non">
            <div class="XvH">10</div>
            <div class="neiR">
                <img src="a2.png">
                <div class="titt">黑莓 Z30</div>
                <div class="pri">参考价：3450元</div>
                <div class="AnN">论坛</div>
                <div class="AnN">参数</div>
                <div class="AnN">图库</div>
            </div>
        </div>
    </div>

    <div class="tab">
        <div class="mod">产品</div>
        <div class="mod">文章</div>
        <div class="mod">论坛</div>
        <div class="mod xuan">软件</div>
        <div class="NNei">
            <input type="text" placeholder="请输入产品">
            <button class="but">搜索</button>
        </div>
        <div class="NNei">
            <input type="text" placeholder="请输入文章">
            <button class="but">搜索</button>
        </div>
        <div class="NNei">
            <input type="text" placeholder="请输入论坛">
            <button class="but">搜索</button>
        </div>
        <div class="NNei NNei1">
            <input type="text" placeholder="请输入软件">
            <button class="but">搜索</button>
        </div>
    </div>

    <script src="jquery-3.3.1.min.js"></script>
    <script>
        $(function () {
            $(".tit").mouseover(function () {
                var index = $(".tit").index(this);
                $(".tit").show();
                $(this).hide();
                $(".nei").hide().eq(index).show();
                // $(".tou>div").removeClass("Xuan").eq(index).addClass("Xuan");
            });

            $(".mod").mouseover(function () {
                var index = $(".mod").index(this);
                $(".NNei").hide().eq(index).show();
                $(".mod").removeClass("xuan").eq(index).addClass("xuan");
            });


        });
    </script>

</body>

</html>